{% extends 'ViettransFrontBundle::layout.html.twig' %}

{% block body %}
<div id="announcement_new" class="panel_bordered">
    <div class="header">Đăng kí mở dịch vụ chuyên nghiệp</div>
    <form action="{{ path('servicepro_new') }}" method="post" {{ form_enctype(form) }}>
        <table>
            <tr>
                <td class="label">{{form_label(form.typeId)}}</td>
                <td class="widget">{{form_widget(form.typeId)}}
                    <div class="error">{{form_errors(form.typeId)}}</div>
                </td>
            </tr>
            <tr>
                <td class="label">{{form_label(form.categoryId)}}</td>
                <td class="widget">{{form_widget(form.categoryId)}}
                    <div class="error">{{form_errors(form.categoryId)}}</div>
                </td>
            </tr>
            <tr>
                <td class="label">{{form_label(form.locality)}}</td>
                <td class="widget">{{form_widget(form.locality)}}
                    <div class="note">Gõ (ít nhất 3 kí tự) và chọn thành phố trong danh sách gợi ý.</div>
                    <div class="error">{{form_errors(form.locality)}}</div>
                </td>
            </tr>
            <tr>
                <td class="label">{{form_label(form.name)}}</td>
                <td class="widget">{{form_widget(form.name)}}
				    <div class="note">Tên dịch vụ tối đa là 100 kí tự.</div>
                    <div class="error">{{form_errors(form.name)}}</div>
                </td>
            </tr>
            <tr>
                <td class="label">{{form_label(form.description)}}</td>
                <td class="widget">{{form_widget(form.description)}}
					<div class="note">Nội dung tối đa là 2000 kí tự.</div>
                    <div class="error">{{form_errors(form.description)}}</div>
                </td>
            </tr>
            <tr>
                <td class="label">{{form_label(form.photo)}}</td>
                <td class="widget">{{form_widget(form.photo)}}
                    <div class="note">*Không bắt buộc (file hợp lệ : .jpg .jpeg .png .gif tối đa 1Mb).</div>
                    <div class="error">{{form_errors(form.photo)}}</div>
                </td>
            </tr>
            <tr>
                <td class="label">{{form_label(form.contactName)}}</td>
                <td class="widget">{{form_widget(form.contactName)}}
                    <div class="error">{{form_errors(form.contactName)}}</div>
                </td>
            </tr>
            <tr>
                <td class="label">{{form_label(form.contactEmail)}}</td>
                <td class="widget">{{form_widget(form.contactEmail)}}
                    <div class="error">{{form_errors(form.contactEmail)}}</div>
                </td>
            </tr>
            <tr>
                <td class="label">{{form_label(form.contactTelephone)}}</td>
                <td class="widget">{{form_widget(form.contactTelephone)}}
                    <div class="note">*Không bắt buộc.</div>
                    <div class="error">{{form_errors(form.contactTelephone)}}</div>
                </td>
            </tr>
            <tr>
                <td class="label">{{form_label(form.contactAddress)}}</td>
                <td class="widget">{{form_widget(form.contactAddress)}}
                    <div class="error">{{form_errors(form.contactAddress)}}</div>
                </td>
            </tr>
            <tr>
                <td class="label"></td>
                <td class="widget"><div class="error">{{form_errors(form)}}</div></td>
            </tr>
            <tr>
                <td colspan="2" align="center">{{ form_rest(form) }}
                    <button type="submit">Đăng tin</button>
                </td>
            </tr>
        </table>
    </form>
</div>
{% endblock %}